/*
 * XInput1_3-dev - Replacement of xinput library to help with creating
 *                 drivers/debugging application
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 3.0 of the License, or (at your option) any later version.
 *
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with this library.
 */

#pragma once

namespace Protocol
{
	extern GUID XUSB_INTERFACE_CLASS_GUID;
	extern DWORD IOCTL_XINPUT_GET_INFORMATION;
	extern DWORD IOCTL_XINPUT_GET_CAPABILITIES;
	extern DWORD IOCTL_XINPUT_GET_LED_STATE;
	extern DWORD IOCTL_XINPUT_GET_GAMEPAD_STATE;
	extern DWORD IOCTL_XINPUT_SET_GAMEPAD_STATE;
	extern DWORD IOCTL_XINPUT_WAIT_FOR_GUIDE_BUTTON;
	extern DWORD IOCTL_XINPUT_GET_BATTERY_INFORMATION;
	extern DWORD IOCTL_XINPUT_POWER_DOWN_DEVICE;
	extern DWORD IOCTL_XINPUT_GET_AUDIO_INFORMATION;

	namespace LEDState
	{
		extern unsigned char const XINPUT_LED_OFF;
		extern unsigned char const XINPUT_LED_BLINK;
		extern unsigned char const XINPUT_LED_1_SWITCH_BLINK;
		extern unsigned char const XINPUT_LED_2_SWITCH_BLINK;
		extern unsigned char const XINPUT_LED_3_SWITCH_BLINK;
		extern unsigned char const XINPUT_LED_4_SWITCH_BLINK;
		extern unsigned char const XINPUT_LED_1;
		extern unsigned char const XINPUT_LED_2;
		extern unsigned char const XINPUT_LED_3;
		extern unsigned char const XINPUT_LED_4;
		extern unsigned char const XINPUT_LED_CYCLE;
		extern unsigned char const XINPUT_LED_FAST_BLINK;
		extern unsigned char const XINPUT_LED_SLOW_BLINK;
		extern unsigned char const XINPUT_LED_FLIPFLOP;
		extern unsigned char const XINPUT_LED_ALLBLINK;
		extern unsigned char const XINPUT_LED_MAX;
		extern unsigned char const XINPUT_PORT_TO_LED_MAP[];
		extern unsigned char const XINPUT_LED_TO_PORT_MAP[];
	}
}